package com.jiexinyun.entity.worktask;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * 安卓机台任务 需要设置一下状态
 * 1.开始生产
 * 2.生产完成
 */

@Data
@TableName("work_task_mx")
@Schema(description = "安卓机台任务明细")
public class WorkTaskMxEntity {

    @TableId(type= IdType.ASSIGN_UUID)
    @Schema(description = "ID",example = "1234567890123456789012")
    private String id;

    @Schema(description = "PID",example = "1234567890123456789012")
    private String pid;

    @Schema(description = "工步码",example = "01")
    private String gongbuma;

    @Schema(description = "工步",example = "01")
    private String gongbu;

    @Schema(description = "工序ID",example = "1")
    private Integer gxId;

    @Schema(description = "工序名称",example = "水水大大我")
    private String gxName;

    @Schema(description = "生产指令-ID",example = "1")
    private Integer wisePpPlanId;

    @Schema(description = "车间生产排程计划-明细信息ID",example = "1")
    private Integer wisePpScpcPlanMxId;

    @Schema(description = "产品ID",example = "0001")
    private Integer hwid;

    @Schema(description = "产品名称",example = "六角螺纹钢")
    private String hwmc;

    @Schema(description = "规格",example = "sa")
    private String gg;

    @Schema(description = "生产批号",example = "sa")
    private String ph;

    @Schema(description = "标准",example = "sa")
    private String wlBz;

    @Schema(description = "表面处理",example = "sa")
    private String wlBmcl;

    @Schema(description = "硬度性能",example = "sa")
    private String wlYdxn;

    @Schema(description = "单位",example = "sa")
    private Integer jldw;

    @Schema(description = "物料材质",example = "sa")
    private String wlCz;

    @Schema(description = "计划产量",example = "100")
    private BigDecimal jhSl;

    @Schema(description = "计量单位描述",example = "个")
    private String jldwDes;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @Schema(description = "计划完成时间",example = "100")
    private Timestamp jhTime;

    @Schema(description = "备注说明",example = "实践活动啥数据库撒旦")
    private String comment;

    @Schema(description = "等级",example = "sa")
    private String wlDj;

    @Schema(description = "状态 1 开始生产（刚刚导入的机台任务 还没有执行定时任务产生排程） 2 生产结束",example = "2")
    private Short status;

    @Schema(description = "数据转移状态 1 开始生产 没有转移到wise_排程（刚刚导入的机台任务 还没有执行定时任务产生排程） 2 产生了排程",example = "2")
    private Short transferStatus;

    @Schema(description = "人员ID",example = "20")
    private Integer ryId;

    @Schema(description = "生产排程排序 录入时默认1",example = "1")
    private Integer scpcSx;

    @Schema(description = "排序",example = "1")
    private Integer sx;

    @Schema(description = "日期格式yyyy-MM-dd",example = "2021-01-01")
    private String outputDateStr;

}
